<?php

namespace Transform;

class BaikeTransform extends Transform {

    public function listview() {
        return [
            'allows' => ['period_id', 'period_name', 'index', 'taglist'],
            'taglist' => ['trans' => ['name' => 'Baike', 'method' => 'tag']],
        ];
    }

    public function tag() {
        return [
            'allows' => ['taglist' => 'tag_id', 'tag_name', 'icon', 'children'],
            'children' => ['trans' => ['name' => 'Baike', 'method' => 'tag']],
        ];
    }

}
